package com.normal.practise.controller;


import com.normal.practise.entity.DataHero;
import com.normal.practise.entity.DataTeam;
import com.normal.practise.service.DataHeroService;
import com.normal.practise.service.DataTeamService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author SiYaoLee
 * @since 2021-05-12
 */
@Api(value = "战队数据")
@RestController
@RequestMapping("/practise/data-team")
public class DataTeamController {
    @Autowired
    private DataTeamService dataTeamService;

    @ApiOperation("查询所有战队数据")
    @GetMapping("findAll_team")
    public List<DataTeam> findAll() {
        List<DataTeam> list = dataTeamService.list();
        return list;
    }
}

